package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 代理管理对象 agency
 * 
 * @author ruoyi
 * @date 2024-10-23
 */
public class Agency extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 级别 */
    @Excel(name = "级别")
    private Long rank;

    /** 等级标题 */
    @Excel(name = "等级标题")
    private String djbt;

    /** 直推福利 */
    @Excel(name = "直推福利")
    private String ztfl;

    /** 级差返利 */
    @Excel(name = "级差返利")
    private String jcfl;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cjtime;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRank(Long rank) 
    {
        this.rank = rank;
    }

    public Long getRank() 
    {
        return rank;
    }
    public void setDjbt(String djbt) 
    {
        this.djbt = djbt;
    }

    public String getDjbt() 
    {
        return djbt;
    }
    public void setZtfl(String ztfl) 
    {
        this.ztfl = ztfl;
    }

    public String getZtfl() 
    {
        return ztfl;
    }
    public void setJcfl(String jcfl) 
    {
        this.jcfl = jcfl;
    }

    public String getJcfl() 
    {
        return jcfl;
    }
    public void setCjtime(Date cjtime) 
    {
        this.cjtime = cjtime;
    }

    public Date getCjtime() 
    {
        return cjtime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rank", getRank())
            .append("djbt", getDjbt())
            .append("ztfl", getZtfl())
            .append("jcfl", getJcfl())
            .append("cjtime", getCjtime())
            .append("status", getStatus())
            .toString();
    }
}
